I m p o r t s   S y s t e m . S p e e c h . R e c o g n i t i o n 
 
 I m p o r t s   S y s t e m . S p e e c h . S y n t h e s i s 
 
 
 
 ' S p e e c h   s y n t h a s i s   m e t h o d s 
 
         ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
         ' ' '   < s u m m a r y > 
 
         ' ' '   e n a b l e s   v o i c e   r e c o g n i t i o n   e n g i n e 
 
         ' ' '   < / s u m m a r y > 
 
         ' ' '   < r e m a r k s > < / r e m a r k s > 
 
         P u b l i c   W i t h E v e n t s   R e c o E n g i n e   A s   N e w   S p e e c h R e c o g n i t i o n E n g i n e ( ) 
 
         ' ' '   < s u m m a r y > 
 
         ' ' '   E n a b l e   T e x t t o S p e e c h 
 
         ' ' '   < / s u m m a r y > 
 
         ' ' '   < r e m a r k s > < / r e m a r k s > 
 
         P r i v a t e   S p e e c h S y n t h   A s   N e w   S p e e c h S y n t h e s i z e r 
 
 
 
 
 
 
 
         ' ' '   < s u m m a r y > 
 
         ' ' '   S e t s   u p   S p e e c h   R e c o g n i t i o n   f o r   u s e 
 
         ' ' '   < / s u m m a r y > 
 
         ' ' '   < r e m a r k s > < / r e m a r k s > 
 
         P u b l i c   S u b   S e t u p R e c o g n i t i o n ( ) 
 
 
 
                 R e c o E n g i n e . L o a d G r a m m a r ( N e w   D i c t a t i o n G r a m m a r ( ) ) 
 
                 R e c o E n g i n e . S e t I n p u t T o D e f a u l t A u d i o D e v i c e ( ) 
 
                 R e c o E n g i n e . R e c o g n i z e A s y n c ( ) 
 
         E n d   S u b 
 
 
 
         ' ' '   < s u m m a r y > 
 
         ' ' '   A c t i v a t e d   o n   c o m p l e t i o n   o f   r e c o g n i t i o n 
 
         ' ' '   < / s u m m a r y > 
 
         ' ' '   < p a r a m   n a m e = " s e n d e r " > < / p a r a m > 
 
         ' ' '   < p a r a m   n a m e = " e " > < / p a r a m > 
 
         ' ' '   < r e m a r k s > < / r e m a r k s > 
 
         P r i v a t e   S u b   R e c o E n g i n e _ R e c o g n i z e C o m p l e t e d ( B y V a l   s e n d e r   A s   O b j e c t ,   B y V a l   e   A s   S y s t e m . S p e e c h . R e c o g n i t i o n . R e c o g n i z e C o m p l e t e d E v e n t A r g s )   H a n d l e s   R e c o E n g i n e . R e c o g n i z e C o m p l e t e d 
 
                 R e c o E n g i n e . R e c o g n i z e A s y n c ( ) 
 
         E n d   S u b 
 
         ' ' '   < s u m m a r y > 
 
         ' ' '   O n   r e c o g o n i z i n g   s p e e c h   t h e   i n p u t   i s   s e n t   t o   t h e   r e s p o n s e   r o u t i n e 
 
         ' ' '   < / s u m m a r y > 
 
         ' ' '   < p a r a m   n a m e = " s e n d e r " > < / p a r a m > 
 
         ' ' '   < p a r a m   n a m e = " e " > < / p a r a m > 
 
         ' ' '   < r e m a r k s > < / r e m a r k s > 
 
         P r i v a t e   S u b   R e c o E n g i n e _ S p e e c h R e c o g n i z e d ( B y V a l   s e n d e r   A s   O b j e c t ,   B y V a l   e   A s   S y s t e m . S p e e c h . R e c o g n i t i o n . R e c o g n i t i o n E v e n t A r g s )   H a n d l e s   R e c o E n g i n e . S p e e c h R e c o g n i z e d 
 
             
 
                 ' a   c a l l   t o   a c t   i s   r e q u i r d   h e r e   
 
                 P r o c e s s I n p u t T e x t ( e . R e s u l t . T e x t ) 
 
         E n d   S u b 
 
         ' ' '   < s u m m a r y > 
 
         ' ' '   S p e a k t e x t   U s e s   t h e   i n t e r n a l   s p e e c h   s y s t e m   t o   s p e a k   t h e   t e x t ,   u s i n g   t h e   S A P I 
 
         ' ' '   < / s u m m a r y > 
 
         ' ' '   < p a r a m   n a m e = " N e w T e x t " > S t r i n g :   T e x t   t o   b e   s p o k e n < / p a r a m > 
 
         ' ' '   < r e m a r k s > < / r e m a r k s > 
 
         P u b l i c   S u b   S p e a k T e x t ( B y R e f   N e w T e x t   A s   S t r i n g ) 
 
 
 
                 S p e e c h S y n t h . S p e a k ( N e w T e x t ) 
 
         E n d   S u b 
 
 